<template>
  <div>
    <van-tabs animated swipeable>
      <van-tab title="标签 1">内容 1</van-tab>
      <van-tab title="标签 2">内容 2</van-tab>
      <van-tab title="标签 3">内容 3</van-tab>
      <van-tab title="标签 4">内容 4</van-tab>
    </van-tabs>
  </div>
</template>

<script>
import { getAllChannelsApi } from '@/api/channel'
export default {
  created () {
    this.getAllChannels()
  },
  methods: {
    async getAllChannels () {
      try {
        const res = getAllChannelsApi()
        console.log(res)
        console.log('获取成功')
      } catch (error) {
        console.log('获取失败')
      }
    }
  }

}
</script>

<style lang="scss" scoped>
</style>
